package top.tangyh.lamp.care.vo.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description ="通用分页入参")
public class BaseQueryParam implements Serializable {
    @Min(1L)
    @Schema(description = "页码，说明：从1开始",example = "1")
    private Integer page =1;

    @Max(1000L)
    @Min(1L)
    @Schema(description = "分页大小",example = "1")
    private Integer size =10;
}